/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package samoloty.view;

import java.awt.Dimension;
import java.awt.event.FocusListener;

/**
 *
 * @author frankowp
 */
public class HoldsPanel extends ContentPanel implements IContentPanel {

    public int identity = 4;
    private HoldsSubPanel holdsSubPanel;
    private PlotPanel plotPanel;

    public HoldsPanel() {
        super();
        initPanel();
    }

    private void initPanel() {
        holdsSubPanel = new HoldsSubPanel();
        holdsSubPanel.setPreferredSize(new Dimension(holdsSubPanel.getPreferredSize().width, holdsSubPanel.getPreferredSize().height - 300));
        holdsSubPanel.setBounds(0, 0, getWidth(), 250);
        setLayout(null);
        add(holdsSubPanel);
    }

    public void addInfoSubPanel(InfoSubPanel infoSubPanel) {
        infoSubPanel.setPreferredSize(new Dimension(289, 289));
        infoSubPanel.setBounds(getWidth() - 289, holdsSubPanel.getHeight() - 1, 289, getHeight() - holdsSubPanel.getHeight() + 1);
        add(infoSubPanel);
    }

    public void reset() {
        holdsSubPanel.reset();
    }

    public String getb1Text() {
        return holdsSubPanel.getb1Text();
    }

    public String getb2Text() {
        return holdsSubPanel.getb2Text();
    }

    public String getb3Text() {
        return holdsSubPanel.getb3Text();
    }

    public String getb4Text() {
        return holdsSubPanel.getb4Text();
    }

    public String getb5Text() {
        return holdsSubPanel.getb5Text();
    }

    public String getb5lText() {
        return holdsSubPanel.getb5lText();
    }

    public String getb5rText() {
        return holdsSubPanel.getb5rText();
    }

    public String getb6Text() {
        return holdsSubPanel.getb6Text();
    }

    public String getc1Text() {
        return holdsSubPanel.getc1Text();
    }

    public String getc2Text() {
        return holdsSubPanel.getc2Text();
    }

    public String getc3Text() {
        return holdsSubPanel.getc3Text();
    }

    public String getc4Text() {
        return holdsSubPanel.getc4Text();
    }

    public String getc5Text() {
        return holdsSubPanel.getc5Text();
    }

    public String getc5lText() {
        return holdsSubPanel.getc5lText();
    }

    public String getc5rText() {
        return holdsSubPanel.getc5rText();
    }

    public String getc6Text() {
        return holdsSubPanel.getc6Text();
    }

    public String getm1Text() {
        return holdsSubPanel.getm1Text();
    }

    public String getm2Text() {
        return holdsSubPanel.getm2Text();
    }

    public String getm3Text() {
        return holdsSubPanel.getm3Text();
    }

    public String getm4Text() {
        return holdsSubPanel.getm4Text();
    }

    public String getm5Text() {
        return holdsSubPanel.getm5Text();
    }

    public String getm5lText() {
        return holdsSubPanel.getm5lText();
    }

    public String getm5rText() {
        return holdsSubPanel.getm5rText();
    }

    public String getm6Text() {
        return holdsSubPanel.getm6Text();
    }

    public String getmax1Lab() {
        return holdsSubPanel.getmax1Lab();
    }

    public String getmax2Lab() {
        return holdsSubPanel.getmax2Lab();
    }

    public String getmax3Lab() {
        return holdsSubPanel.getmax3Lab();
    }

    public String getmax4Lab() {
        return holdsSubPanel.getmax4Lab();
    }

    public String getmax5Lab() {
        return holdsSubPanel.getmax5Lab();
    }

    public String getmax5lLab() {
        return holdsSubPanel.getmax5lLab();
    }

    public String getmax5rLab() {
        return holdsSubPanel.getmax5rLab();
    }

    public String getmax6Lab() {
        return holdsSubPanel.getmax6Lab();
    }

    public void setTtl1Lab(String value) {
        holdsSubPanel.setTtl1Lab(value);
    }

    public void setTtl2Lab(String value) {
        holdsSubPanel.setTtl2Lab(value);
    }

    public void setTtl3Lab(String value) {
        holdsSubPanel.setTtl3Lab(value);
    }

    public void setTtl4Lab(String value) {
        holdsSubPanel.setTtl4Lab(value);
    }

    public void setTtl5Lab(String value) {
        holdsSubPanel.setTtl5Lab(value);
    }

    public void setTtl5lLab(String value) {
        holdsSubPanel.setTtl5lLab(value);
    }

    public void setTtl5rLab(String value) {
        holdsSubPanel.setTtl5rLab(value);
    }

    public void setTtl6Lab(String value) {
        holdsSubPanel.setTtl6Lab(value);
    }

    public void setMax1Lab(String value) {
        holdsSubPanel.setMax1Lab(value);
    }

    public void setMax2Lab(String value) {
        holdsSubPanel.setMax2Lab(value);
    }

    public void setMax3Lab(String value) {
        holdsSubPanel.setMax3Lab(value);
    }

    public void setMax4Lab(String value) {
        holdsSubPanel.setMax4Lab(value);
    }

    public void setMax5Lab(String value) {
        holdsSubPanel.setMax5Lab(value);
    }

    public void setMax5lLab(String value) {
        holdsSubPanel.setMax5lLab(value);
    }

    public void setMax5rLab(String value) {
        holdsSubPanel.setMax5rLab(value);
    }

    public void setMax6Lab(String value) {
        holdsSubPanel.setMax6Lab(value);
    }

    public void setTTLBLab(String value) {
        holdsSubPanel.setTTLBLab(value);
    }

    public void setTTLCLab(String value) {
        holdsSubPanel.setTTLCLab(value);
    }

    public void setTTLMLab(String value) {
        holdsSubPanel.setTTLMLab(value);
    }

    public void setB1FocusListener(FocusListener listener) {
        holdsSubPanel.setB1FocusListener(listener);
    }

    public void setB2FocusListener(FocusListener listener) {
        holdsSubPanel.setB2FocusListener(listener);
    }

    public void setB3FocusListener(FocusListener listener) {
        holdsSubPanel.setB3FocusListener(listener);
    }

    public void setB4FocusListener(FocusListener listener) {
        holdsSubPanel.setB4FocusListener(listener);
    }

    public void setB5FocusListener(FocusListener listener) {
        holdsSubPanel.setB5FocusListener(listener);
    }

    public void setB5lFocusListener(FocusListener listener) {
        holdsSubPanel.setB5lFocusListener(listener);
    }

    public void setB5rFocusListener(FocusListener listener) {
        holdsSubPanel.setB5rFocusListener(listener);
    }

    public void setB6FocusListener(FocusListener listener) {
        holdsSubPanel.setB6FocusListener(listener);
    }

    public void setC1FocusListener(FocusListener listener) {
        holdsSubPanel.setC1FocusListener(listener);
    }

    public void setC2FocusListener(FocusListener listener) {
        holdsSubPanel.setC2FocusListener(listener);
    }

    public void setC3FocusListener(FocusListener listener) {
        holdsSubPanel.setC3FocusListener(listener);
    }

    public void setC4FocusListener(FocusListener listener) {
        holdsSubPanel.setC4FocusListener(listener);
    }

    public void setC5FocusListener(FocusListener listener) {
        holdsSubPanel.setC5FocusListener(listener);
    }

    public void setC5lFocusListener(FocusListener listener) {
        holdsSubPanel.setC5lFocusListener(listener);
    }

    public void setC5rFocusListener(FocusListener listener) {
        holdsSubPanel.setC5rFocusListener(listener);
    }

    public void setC6FocusListener(FocusListener listener) {
        holdsSubPanel.setC6FocusListener(listener);
    }

    public void setM1FocusListener(FocusListener listener) {
        holdsSubPanel.setM1FocusListener(listener);
    }

    public void setM2FocusListener(FocusListener listener) {
        holdsSubPanel.setM2FocusListener(listener);
    }

    public void setM3FocusListener(FocusListener listener) {
        holdsSubPanel.setM3FocusListener(listener);
    }

    public void setM4FocusListener(FocusListener listener) {
        holdsSubPanel.setM4FocusListener(listener);
    }

    public void setM5FocusListener(FocusListener listener) {
        holdsSubPanel.setM5FocusListener(listener);
    }

    public void setM5lFocusListener(FocusListener listener) {
        holdsSubPanel.setM5lFocusListener(listener);
    }

    public void setM5rFocusListener(FocusListener listener) {
        holdsSubPanel.setM5rFocusListener(listener);
    }

    public void setM6FocusListener(FocusListener listener) {
        holdsSubPanel.setM6FocusListener(listener);
    }

    public void hideField(String name) {
        holdsSubPanel.hideField(name);
    }

    public void unhide() {
        holdsSubPanel.unhide();
    }

    public void setPlotPanel(PlotPanel instance) {
        plotPanel = instance;
        plotPanel.setBounds(1, holdsSubPanel.getHeight() - 1, 288, getHeight() - holdsSubPanel.getHeight());
        add(plotPanel);
    }

    public String get_vhold1b() {
        return holdsSubPanel.get_vhold1b();
    }

    public String get_vhold1c() {
        return holdsSubPanel.get_vhold1c();
    }

    public String get_vhold1m() {
        return holdsSubPanel.get_vhold1m();
    }

    public String get_vhold2b() {
        return holdsSubPanel.get_vhold2b();
    }

    public String get_vhold2c() {
        return holdsSubPanel.get_vhold2c();
    }

    public String get_vhold2m() {
        return holdsSubPanel.get_vhold2m();
    }

    public String get_vhold3b() {
        return holdsSubPanel.get_vhold3b();
    }

    public String get_vhold3c() {
        return holdsSubPanel.get_vhold3c();
    }

    public String get_vhold3m() {
        return holdsSubPanel.get_vhold3m();
    }

    public String get_vhold4b() {
        return holdsSubPanel.get_vhold4b();
    }

    public String get_vhold4c() {
        return holdsSubPanel.get_vhold4c();
    }

    public String get_vhold4m() {
        return holdsSubPanel.get_vhold4m();
    }

    public String get_vhold5b() {
        return holdsSubPanel.get_vhold5b();
    }

    public String get_vhold5c() {
        return holdsSubPanel.get_vhold5c();
    }

    public String get_vhold5m() {
        return holdsSubPanel.get_vhold5m();
    }

    public String get_vhold5lb() {
        return holdsSubPanel.get_vhold5lb();
    }

    public String get_vhold5lc() {
        return holdsSubPanel.get_vhold5lc();
    }

    public String get_vhold5lm() {
        return holdsSubPanel.get_vhold5lm();
    }

    public String get_vhold5rb() {
        return holdsSubPanel.get_vhold5rb();
    }

    public String get_vhold5rc() {
        return holdsSubPanel.get_vhold5rc();
    }

    public String get_vhold5rm() {
        return holdsSubPanel.get_vhold5rm();
    }

    public String get_vhold6b() {
        return holdsSubPanel.get_vhold6b();
    }

    public String get_vhold6c() {
        return holdsSubPanel.get_vhold6c();
    }

    public String get_vhold6m() {
        return holdsSubPanel.get_vhold6m();
    }

    public String get_vttlhold1() {
        return holdsSubPanel.get_vttlhold1();
    }

    public String get_vttlhold2() {
        return holdsSubPanel.get_vttlhold2();
    }

    public String get_vttlhold3() {
        return holdsSubPanel.get_vttlhold3();
    }

    public String get_vttlhold4() {
        return holdsSubPanel.get_vttlhold4();
    }

    public String get_vttlhold5() {
        return holdsSubPanel.get_vttlhold5();
    }

    public String get_vttlhold5l() {
        return holdsSubPanel.get_vttlhold5l();
    }

    public String get_vttlhold5r() {
        return holdsSubPanel.get_vttlhold5r();
    }

    public String get_vttlhold6() {
        return holdsSubPanel.get_vttlhold6();
    }

    public String get_vttlholdb() {
        return holdsSubPanel.get_vttlholdb();
    }

    public String get_vttlholdc() {
        return holdsSubPanel.get_vttlholdb();
    }

    public String get_vttlholdm() {
        return holdsSubPanel.get_vttlholdb();
    }

    public void center() {
        holdsSubPanel.center();
    }

    public void setFirstFieldActive() {
        holdsSubPanel.setFirstFieldActive();
    }

    public void hideMaximumLoadExceed() {
        holdsSubPanel.hideMaximumLoadExceed();
    }

    public void showMaximumLoadExceed() {
        holdsSubPanel.showMaximumLoadExceed();
    }

    public void set_vttlholdsw(double vttlholdsw) {
        holdsSubPanel.set_vttlholdsw(vttlholdsw);
    }

    @Override
    public int getIdentity() {
        return identity;
    }

    @Override
    public boolean isValid() {
        try {
            return holdsSubPanel.isValid();
        } catch (NullPointerException e) {
            return false;
        }
    }
}
